package com.cloudpark.common.util.wechat;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class MsgJsonUtil {

	public static String toJSONString(String content, String openId) {
        JSONObject obj = new JSONObject();
        obj.put("content", content);
        JSONObject root = new JSONObject();
        root.put("touser", openId);
        root.put("msgtype", "text");
        root.put("text", obj);
        String message = JSON.toJSONString(root);
        return message;
    }
}
